﻿@model CSEPT.Models.UserViewModel
@{
    ViewBag.Title = "Change Email / Delete Account";
}
<h2>Change User Email</h2>
<form class="col-xs-12 col-sm-8 col-sm-offset-2 col-md-6 col-md-offset-3 col-lg-4 col-lg-offset-4" action="@Url.Action("Update", "User")" method="post" id="Info">
    @Html.HiddenFor(model => model.usr.ID)
    <div class="col-xs-12 form-group">
        <label class="control-label">Email</label>
        @Html.TextBoxFor(model => model.usr.Email, new { @placeholder = "Email", @class = "form-control required" })
    </div>
    <div class="col-xs-12">
        <div class="btn-group">
            <a class="btn btn-lg btn-danger rounded" onclick="$(this).removeClass('rounded'); $(this).siblings('.btn').slideDown(200)" href="#">Delete User?</a>
            <a class="btn btn-lg btn-danger" href="@Url.Action("Delete", "User", new { @ID = Model.usr.ID })" style="display:none">Yes</a>
        </div>
        <button class="btn btn-lg btn-primary pull-right">Submit</button>
    </div>
</form>